<div class="profile" ng-controller="ProfileCtrl" ng-init="initTags()">

  <div ng-include="'angular/template/include/toptip.html'">
  </div>

  <div class="profile-logo"><img src="angular/images/logo.png" alt="logo"/></div>
  <div class="text-center"><p class="gray-dark"><small>我的标签</small></p></div>


  <div class="interest-label" ng-if="editLabelType == 'INTEREST'">
    <div class="label-edit">
      <div class="header clearfix">
        <h1 class="pull-left">已选兴趣爱好&nbsp;<small>（点击移除）</small></h1>
      </div>
      <div class="content">
        <ul class="clearfix">
          <li class="pull-left" ng-repeat="tag in customerTags"><span class="label" ng-click="deleteTag($index, editLabelType)">{{tag.name}}</span></li>
        </ul>
      </div>
    </div>
    <div class="label-list">
      <div class="header">
        <h1>点击标签添加更多&nbsp;&nbsp;<small>(&nbsp;最多5条&nbsp;)</small></h1>
      </div>
      <ul class="clearfix">
        <li class="pull-left" ng-repeat="tag in systemTags"><span class="label" ng-class="{disabled: tag.disabled}" ng-click="tag.disabled || addInterestTag($index, editLabelType)">{{tag.name}}</span></li>
      </ul>
    </div>
    <div class="sure" ng-click="saveAndBack()">确定</div>
  </div>

  <div class="life-label" ng-if="editLabelType == 'LIFE'">
    <div class="label-edit top-margin-20">
      <div class="header clearfix">
        <h1 class="pull-left">已选生活标签&nbsp;<small>（点击移除）</small></h1>
      </div>
      <div class="content">
        <ul class="clearfix">
          <li class="pull-left" ng-repeat="tag in customerTags"><span class="label" ng-click="deleteTag($index, editLabelType)">{{tag.name}}</span></li>
          <p ng-show="customerTags.length ==0" class="no-margin gray">暂无标签</p>
        </ul>
      </div>
    </div>
    <div class="label-list">
      <div class="header">
        <h1>点击标签添加更多&nbsp;&nbsp;<small>(&nbsp;最多3条&nbsp;)</small></h1>
      </div>
      <ul class="clearfix">
        <li class="pull-left" ng-repeat="tag in systemTags"><span class="label" ng-class="{disabled: tag.disabled}" ng-click="tag.disabled || addLifeTag($index, editLabelType)">{{tag.name}}</span></li>
      </ul>
    </div>
    <div class="sure" ng-click="saveAndBack()">确定</div>
  </div>


</div>
